<?php
namespace App\Info\Dto;

use Mine\Interfaces\MineModelExcel;
use Mine\Annotation\ExcelData;
use Mine\Annotation\ExcelProperty;

/**
 * 新闻列表Dto （导入导出）
 */
#[ExcelData]
class InfoItemDto implements MineModelExcel
{
    #[ExcelProperty(value: "ID", index: 0)]
    public string $id;

    #[ExcelProperty(value: "标题", index: 1)]
    public string $title;

    #[ExcelProperty(value: "摘要", index: 2)]
    public string $summary;

    #[ExcelProperty(value: "分类id", index: 3)]
    public string $class_id;

    #[ExcelProperty(value: "缩略图", index: 4)]
    public string $thumb;

    #[ExcelProperty(value: "内容", index: 5)]
    public string $content;

    #[ExcelProperty(value: "排序", index: 6)]
    public string $display_order;

    #[ExcelProperty(value: "是否推荐", index: 7)]
    public string $is_recommend;

    #[ExcelProperty(value: "创建者", index: 8)]
    public string $created_by;

    #[ExcelProperty(value: "更新者", index: 9)]
    public string $updated_by;

    #[ExcelProperty(value: "状态", index: 10)]
    public string $status;

    #[ExcelProperty(value: "创建时间", index: 11)]
    public string $create_time;

    #[ExcelProperty(value: "更新时间", index: 12)]
    public string $update_time;


}